[#include "../common/taglibs.html"/]
<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
	<h4 class="modal-title">[@spring.message code="feerule.create.title"/]</h4>
</div>

<div class="modal-control">
	[@form.form commandName="createDTO" method="POST" class="form-horizontal form"]
	<input type="hidden" name="format" value="json">
	<div class="modal-body">
		<div class="form-body">
			
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="feerule.create.form.label.beginAmount"/]</label>
				<div class="col-md-9">
					[@spring.bind path="beginAmount"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="feerule.create.form.label.endAmount"/]</label>
				<div class="col-md-9">
					[@spring.bind path="endAmount"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="feerule.create.form.label.mode"/]</label>
				<div class="col-md-9">
					<div class="btn-group" data-toggle="buttons">
						[@spring.bind path="mode"]
						[#list enums["net.lanelife.casino.caipiao.entity.FeeRule$Mode"]?values as item]
						<label class="btn btn-default[#if item==status.value] active[/#if]">
							<input name="${status.expression}" value="${item.name()}" [#if item==status.value]checked="checked"[/#if] type="radio" class="toggle">
							[@spring.message code="net.lanelife.casino.caipiao.entity.FeeRule.Mode."+item.name()/]
						</label>
						[/#list]
						[/@spring.bind]
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="feerule.create.form.label.fee"/]</label>
				<div class="col-md-9">
					[@spring.bind path="fee"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="feerule.create.form.label.minFee"/]</label>
				<div class="col-md-9">
					[@spring.bind path="minFee"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="feerule.create.form.label.maxFee"/]</label>
				<div class="col-md-9">
					[@spring.bind path="maxFee"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="feerule.create.form.label.type"/]</label>
				<div class="col-md-9">
					<div class="btn-group" data-toggle="buttons">
						[@spring.bind path="type"]
						[#list enums["net.lanelife.casino.caipiao.entity.FeeRule$Type"]?values as item]
						<label class="btn btn-default[#if item==status.value] active[/#if]">
							<input name="${status.expression}" value="${item.name()}" [#if item==status.value]checked="checked"[/#if] type="radio" class="toggle">
							[@spring.message code="net.lanelife.casino.caipiao.entity.FeeRule.Type."+item.name()/]
						</label>
						[/#list]
						[/@spring.bind]
					</div>
				</div>
			</div>
			
		</div>
	</div>
	<div class="modal-footer">
		<button type="button" class="btn default" data-dismiss="modal">[@spring.message code="form.button.close"/]</button>
		<button type="submit" class="btn blue">[@spring.message code="form.button.submit"/]</button>
	</div>
	[/@form.form]
</div>

<script type="text/javascript">

$('#createDTO').validate({
	rules: {
  	},
	messages:{
	}
});

</script>